<?php

/*
 * 获取分类数据
 * 
 * @since 1.0.0 2013-12-3 sutroon
 */

function smarty_function_plugin_catalog_list($params,&$dm){
    extract($params);
    $dm=new SoDataModule();
    $dataset=$dm->select_arrayset('tgeneralarticle', '');
        // 构建数据表格
        $str='aa';
        if($dataset){
            foreach($dataset as $row){
                //$this->uig->add_trow($row['ID'],$row['Title'],$row['VisitCount'],$row['CreatedTime'],$biz->switch_state(array('v'=>$row['State'],'group'=>array('0'=>'关闭','1'=>'正常'))),$this->get_control_linkbuttons($row['ID'],$row['Title'],'Article' ));
                $str.=$row['Title'];
            }
        }
        return $str.'run';
}
?>
